{capture name="tiny_url_set"}{get_scheme()}://{if $domain_url_set}{$domain_url_set->getDomain()}{else}{#RewriteHost#}{/if}/?{$url_set->getGroupName()}{/capture}
<h1>Edit URL set</h1>
<form action="" method="post">
	<div class="longer-form-field">
		<label>Domain name:</label>
		<select name="domain_name">
			<option value="">{#RewriteHost#} (default)</option>
			{foreach $domains as $domain}
				<option value="{$domain.id}"{if $domain_url_set && $domain_url_set->getID() == $domain.id} selected="selected"{/if}>{$domain.domain}</option>
			{/foreach}
		</select><br /><br />
	</div>
	<div class="longer-form-field">
		<label>Current group name:</label>
		<b>{$url_set->getGroupName()}</b>
	</div>
	<div class="longer-form-field">
		<label>Tiny URL set:</label>
		<b><a href="{$smarty.capture.tiny_url_set}" rel="external" class="no-underline">{$smarty.capture.tiny_url_set}</a></b>
	</div>
	<script type="text/javascript">
		document.write(unescape("%3Cdiv class='longer-form-field'%3E\n"));
		document.write(unescape("%3Clabel%3E&nbsp;%3C/label%3E\n"));
		createCopyButton('{$smarty.capture.tiny_url_set}');
		document.write(unescape("%3C/div%3E\n"));
	</script>
	<div class="longer-form-field">
		<label>Date:</label>
		<b>{$url_set->getDate()}</b>
		<br /><br />
	</div>
	<div class="longer-form-field">
		<label>New custom group name:</label>
		<input type="text" name="new_group_name" value="{$new_group_name}" /> (optional)
		<br /><br />
	</div>
	<div class="longer-form-field">
		<label>URL set options:</label>
		<div class="float">
			Password protection: <input type="text" name="password" value="{$url_set->getPassword()|escape}" /><br />
			Maximum number of hits: <input type="text" name="maxhits" value="{$url_set->getMaxHits()|escape}" /><br />
			Expiration date: <input type="text" name="expiration" value="{$url_set->getExpiration()|escape}" readonly="readonly" /> <img class="calendar-button" src="../images/calendar.gif" alt="Pick" title="Pick" onclick="displayDatePicker('expiration', false, 'ymd', '-');" /> <img class="empty-button" src="../images/delete.gif" alt="Empty" title="Empty" onclick="document.forms[0].expiration.value = '';" /><br />
			<input type="checkbox" name="disabled" value="1" class="no-border" {if $url_set->isDisabled()}checked="checked" {/if}/> Disable temporarily
		</div>
		<div class="clear"></div>
	</div>
	<div class="longer-form-field">
		<label>&nbsp;</label>
		<input type="submit" name="edit_button" value="Update" />
	</div>
</form>